<?php
error_reporting(0);
header("Content-type: text/html; charset=UTF-8");
include_once 'check.php';
$isadmin=1;
include_once '../comm/config.php';
include '../comm/checkpostandget.php';

$uc=file_get_contents('../data/config.inc.php');
$uc_arr=explode("///",$uc);

include '../data/config.inc.php';
if(UC==1){
  $uc_k='checked="checked"';
}
else{
  $uc_g='checked="checked"';
}

$uc = mysql_connect(UC_DBHOST, UC_DBUSER, UC_DBPW);
if($uc){
    $daoru=1;
}
else{
    $daoru=0;
}

$uclock=is_file('../data/easyuc.php.lock');
$ucopen=is_file('../data/easyuc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body topmargin="5" leftmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="images/arrow.gif" width="16" height="22" align="absmiddle" /> UCenter通信设置</strong></td>
            </tr>
            <tr>
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form action="../data/easyuc.php" method="post">
                    <br />
                    <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="40" class="bigtext"><span style="font-weight:bold; color:#F00">提示：</span>在UCenter中添加多多淘宝客的应用后，在该应用的最下面，会有一块通信信息。<br />
                          <span style="font-weight:bold; color:#FFF">提示：</span>将此信息直接复制到下面的通信信息框中即可。<br />
                           <span style="font-weight:bold; color:#F00;">必读：</span>如果你的多多系统中已有用户，且UCenter为全新安装，需要将多多中的会员导入到UC中，<a <?php if($daoru==1){?>href="ddtouc.php"<?php }else{echo ' title="您还没安装UCenter或未添加该应用,不能导入会员"';}?> style="color:#F0F">导入会员</a>；<br />
                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果您是新安装系统可忽略此步。</td>
                      </tr>
                    </table>
                    <table width="600"  align="center" border=1 cellpadding=0 cellspacing=0
style="border-collapse: collapse" bordercolor="#dddddd">
                      <tr>
                        <td height="30" align="right" class="bigtext">开启通信：</td>
                        <td height="0" class="bigtext">&nbsp;<input type="radio" name="uc" id="uc_k" <?=$uc_k?> value="1"/><label for="uc_k">开启</label> <input type="radio" name="uc" id="uc_g" <?=$uc_g?> value="0" />
                        <label for="uc_g">关闭 </label>（如果没有整合UC请选择关闭否则会出错）</td>
                        </tr>
                      <tr>
                        <td height="129" align="right" class="bigtext">通信信息：</td>
                        <td height="129" class="bigtext">&nbsp;
<textarea name="ucde" cols="40" rows="5" class="btn3" id="uc" style="width:400px; height:120px;"><?=$uc_arr[1]?></textarea></td>
                        </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">红字必看<br/>安全第一</td>
                        <td height="30" class="bigtext">&nbsp;
						<input <?php if($uclock==1){echo 'disabled="disabled"';}?> type="submit" name="sub" value=" 保 存 设 置 " /> 
						<?php if($uclock==1){echo '<br/>&nbsp;<b style=" color:red">当前UC设置不可用，如要修改，请登陆ftp，找到data/easyuc.php.lock文件，改名为easyuc.php</b>';}?> 
                        <?php if($ucopen==1){echo '<br/>&nbsp;<b style=" color:red">当前UC设置可用，如无需更改UC设置，请将data/easyuc.php改名为data/easyuc.php.lock</b>';}?>
                        </td>
                      </tr>
                                            <tr>
                        <td height="30" colspan="2" align="right"><div align="left">软件下载：<a href="http://www.comsenz.com/downloads/install/ucenter" target="_blank">Ucenter </a> &nbsp;&nbsp;&nbsp;<a href="http://www.comsenz.com/downloads/install/discuzx" target="_blank">DX</a> (注意：1、版本为UTF_8版；2、建议论坛目录设置为 bbs )</div></td>
                        </tr>
                    </table>
                    <br />
                  </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>
<?php mysql_close($link);?>
